package sharewithus.content.dao.impl;

import java.util.List;
import java.util.UUID;

import sharewithus.content.dao.IFeedDao;
import sharewithus.content.dto.Feed;
import framelib.dao.BaseDAOImpl;

public class FeedDaoImpl extends BaseDAOImpl implements IFeedDao{

	//@Override
	public void saveFeed(Feed feed) {
		
		//feed.setFeedId(UUID.randomUUID().toString());
		 super.executeInsert("content.saveFeed", feed);
	}

	//@Override
	public Feed getFeedById(String feedId) {
		
		return (Feed)super.queryForObject("content.getFeed", feedId);

	}
	
	//@Override
	/*
	public List<Feed> getPublishedFeeds(String ownerId) {
		
		return super.queryForList("content.getPublishedFeeds", ownerId);
	}
	*/
}
